package com.proj.model;

public class RecommendType {
  public Integer typeId;
  public int score;

  public RecommendType(Integer typeId, int score) {
    this.typeId = typeId;
    this.score = score;
  }

  public void setScore(int score) {
    this.score = score;
  }

  public void setTypeId(Integer typeId) {
    this.typeId = typeId;
  }

  public int compareTo(RecommendType recommendType) {
    return score > recommendType.score ? -1 : 1;
  }

  @Override
  public String toString() {
    return "RecommendType{" + "typeId=" + typeId + ", score=" + score + '}';
  }
}
